/*
 * @Author: Wxx
 * @Date: 2022-02-25 17:51:02
 * @LastEditors: Wxx
 * @LastEditTime: 2022-02-25 17:51:40
 * @Description:
 */
const City = (
  prevState = {
    cityName: "成都",
  },
  action
) => {
  const newState = { ...prevState };
  switch (action.type) {
    case "cityChange":
      newState.cityName = action.payload;
      return newState;
    default:
      return prevState;
  }
};
export default City;
